Skip to content

feat(cli): add Markdown output to dispatch notes - #431

Open
jongio wants to merge 1 commit into
mainfrom
add-notes-markdown
Open

jongio wants to merge 1 commit into
mainfrom
add-notes-markdown

Conversation

@jongio

@jongio jongio commented Sep 26, 2026

Copy link
Copy Markdown
Owner

What

Adds a --markdown output format to dispatch notes list, matching the Markdown support in stats, tags, compare, and views. Notes often end up in issues, PRs, and writeups, so a ready-to-paste Markdown table saves a reformatting step.

Changes

  • dispatch notes --markdown and dispatch notes list --markdown print a Markdown table (| ID | Summary | Note |) with a Notes: N count line.
  • --markdown cannot be combined with --json or --csv; the error now reads --json, --csv, and --markdown cannot be combined.
  • Cells go through markdownCell, so pipes and newlines cannot break the table.
  • Empty case prints No notes found. with no table.
  • Updated README, man page, and CLI usage.

Tests

  • TestRunNotesListMarkdown, TestRunNotesListMarkdownEmpty, TestRunNotesListMarkdownEscapes added.
  • go build ./..., go test ./cmd/dispatch/, gofmt, gofumpt, and go vet all pass.

Closes #430

Add a --markdown flag to dispatch notes list so notes can be pasted straight into issues, PRs, and docs. It prints a Markdown table with escaped cells and cannot be combined with --json or --csv. Docs and tests updated.

Closes #430

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@jongio jongio added the idea Feature idea from the idea pipeline label Sep 26, 2026
@jongio jongio self-assigned this Sep 26, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

idea Feature idea from the idea pipeline

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Markdown output to dispatch notes

1 participant